package com.vodone.v1pin.userInfo.delegate
{
	import com.vodone.v1pin.ServiceProvider;
	import com.vodone.v1pin.core.model.MainModelLocator;
	import com.vodone.v1pin.core.service.HttpJsonDelegate;
	
	import mx.rpc.http.mxml.HTTPService;

	public class LoveDelegate
	{
		public static function getLoveList( resultHandler:Function , type:int , faultHandler:Function = null , context:Array = null ):void
		{
			var service:HTTPService = ServiceProvider.getInstance().getLoveService;
			var params:Object = {
				userID : MainModelLocator.getInstance().userLoginVO.userId,
				type : type
			}
			var delegate:HttpJsonDelegate = new HttpJsonDelegate( service );
			delegate.send( params , resultHandler , faultHandler , context );
		}
		public static function addMyLove( resultHandler:Function , messageID:String , type:int , faultHandler:Function = null , context:Array = null ):void
		{
			var service:HTTPService = ServiceProvider.getInstance().addMyLoveService;
			var params:Object = {
				userID : MainModelLocator.getInstance().userLoginVO.userId,
				messageID : messageID,
				type : type
			}
			var delegate:HttpJsonDelegate = new HttpJsonDelegate( service );
			delegate.send( params , resultHandler , faultHandler , context );
		}
	}
}